package com.yunji.common.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDelFlagDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

;

/**
 * @Package com.yunji.user.domain
 * FileName:	Agent.java
 * Copyright:	Copyright © 2024 云集互联 All Rights Reserved
 * Company:		云集互联
 * @version: 1.0
 * @since: JDK 1.8.0_202
 * Create at:   2024-04-08 01:38:09
 * Description:
 * 代理商信息
 * Modification History:
 * Author					Date					Version         Description
 * -------------------------------------------------------------------------------------
 * HuaAo				2024-04-08 01:38:09     1.0             1.0 Version
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("s_agent_user")
public class AgentDO extends BaseDelFlagDO implements Serializable {
    private static final long serialVersionUID = -4214079554162406843L;

    @ApiModelProperty("主键ID")
    @TableId(type = IdType.AUTO)
    @Excel(name = "主键ID", width = 15)
    private Long id;

    @ApiModelProperty("主键ID")
    @Excel(name = "主键ID", width = 15)
    private Long belongId;

    @Excel(name = "代理商用户ID", width = 15)
    private Long agentId;

    @ApiModelProperty("代理商名称")
    @Excel(name = "代理商名称", width = 15)
    private String agentName;

    @ApiModelProperty("代理商手机号")
    @Excel(name = "代理商手机号", width = 15)
    private String agentTel;

    @ApiModelProperty("平台分成比例（%）")
    private BigDecimal platformScale;

    @ApiModelProperty("代理商分成比例（%）")
    private BigDecimal agentScale;

    @ApiModelProperty("货柜上限")
    @Excel(name = "货柜上限", width = 15)
    private Integer containerLimit;

    @ApiModelProperty("合作方式 0-代理合作 1-自营")
    @Excel(name = "合作方式 0-代理合作 1-自营", width = 15)
    private Integer cooperateWay;

    @ApiModelProperty("省份代码")
    private String provinceCode;

    @ApiModelProperty("省份名称")
    @Excel(name = "省份名称", width = 15)
    private String provinceName;

    @ApiModelProperty("城市代码")
    private String cityCode;

    @ApiModelProperty("城市名称")
    @Excel(name = "城市名称", width = 15)
    private String cityName;

    @ApiModelProperty("区县代码")
    private String countyCode;

    @ApiModelProperty("区县名称")
    @Excel(name = "区县名称", width = 15)
    private String countyName;

    @ApiModelProperty("地区信息")
    @Excel(name = "地区信息", width = 15)
    private String region;

    @ApiModelProperty("出生时间")
    @Excel(name = "出生时间", width = 15)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthTime;

    @ApiModelProperty("详细地址")
    @Excel(name = "详细地址", width = 15)
    private String address;
}
